// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** add POST /api/equipment/Label/add */
export async function addUsingPost1(body: API.EquipmentLabelDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/equipment/Label/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** delete POST /api/equipment/Label/delete */
export async function deleteUsingPost1(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/equipment/Label/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** queryAll GET /api/equipment/Label/queryAll */
export async function queryAllUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListEquipmentLabelDTO_>('/api/equipment/Label/queryAll', {
    method: 'GET',
    ...(options || {}),
  })
}

/** queryByCategoryId POST /api/equipment/Label/queryByCategoryId */
export async function queryByCategoryIdUsingPost(
  body: API.EquipmentLabelDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListEquipmentLabelDTO_>('/api/equipment/Label/queryByCategoryId', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** queryById POST /api/equipment/Label/queryById */
export async function queryByIdUsingPost(
  body: API.EquipmentLabelDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseEquipmentLabelDTO_>('/api/equipment/Label/queryById', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** update POST /api/equipment/Label/update */
export async function updateUsingPost1(
  body: API.EquipmentLabelDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/equipment/Label/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
